<template>
  <div class="page">
    <iframe :src="iframeurl" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>
  </div>
</template>

<script setup>
import { ref } from 'vue'
const baseUrl = import.meta.env.VITE_CHAT_IFRAME_URL
let userName = JSON.parse(localStorage.getItem('userInfo') || '{}').username
const iframeurl = `${baseUrl}customerService?user_id=${userName}`
</script>

<style scoped>
.page {
  width: 100%;
  height: 100%;
  background: #fff;
}
</style>
